﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class UserStory
    {
        private List<Tasks> tasklist;

        public List<Tasks> Tasklist
        {
            get { return tasklist; }
            set { tasklist = value; }
        }


        private int userstoryid;

        public int Userstoryid
        {
            get { return userstoryid; }
            set { userstoryid = value; }
        }

        private string titel;

        public string Titel
        {
            get { return titel; }
            set { titel = value; }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private string status;

        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        private int estimatedworkload;

        public int Estimatedworkload
        {
            get { return estimatedworkload; }
            set { estimatedworkload = value; }
        }

        private int realworkload;

        public int Realworkload
        {
            get { return realworkload; }
            set { realworkload = value; }
        }

        private int businessweight;

        public int Businessweight
        {
            get { return businessweight; }
            set { businessweight = value; }
        }

        private int sprintid;

        public int Sprintid
        {
            get { return sprintid; }
            set { sprintid = value; }
        }

        public UserStory(int userstoryid, string titel, string description, string status, int estimatedworkload, int realworkload, int businessweight, int sprintid)
        {
            this.Userstoryid = userstoryid;
            this.Titel = titel;
            this.Description = description;
            this.Status = status;
            this.Estimatedworkload = estimatedworkload;
            this.Realworkload = realworkload;
            this.Businessweight = businessweight;
            this.Sprintid = sprintid;

        }
        public UserStory(string titel, int userstoryid)
        {
            this.Userstoryid = userstoryid;
            this.Titel = titel;
        }

        public override string ToString()
        {
            return this.Titel;
        }


    }
}
